Search results

1000+ packages found

String validation and sanitization

published version 13.15.15, 6 days ago7336 dependents licensed under $MIT
60,270,639

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

published version 3.2.6, 15 days ago2837 dependents licensed under $(MPL-2.0 OR Apache-2.0)
41,046,572

micromark utility to sanitize urls

published version 2.0.1, 7 months ago51 dependents licensed under $MIT
41,243,140

Escape a string for use in HTML or the inverse

published version 4.0.0, 4 years ago540 dependents licensed under $MIT
31,151,139

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago473 dependents licensed under $MIT
22,534,991

Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS

published version 0.0.11, 10 months ago34 dependents licensed under $MIT
12,056,387

Sanitize a string for use as a filename

published version 1.6.3, 6 years ago1354 dependents licensed under $WTFPL OR ISC
10,685,085

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

published version 2.17.0, 20 days ago2101 dependents licensed under $MIT
12,562,607

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

published version 1.0.15, a year ago1221 dependents licensed under $MIT
12,402,846

A 1.75kB library for enhancing `html`. `ultrahtml` has zero dependencies and is compatible with any JavaScript runtime.

published version 1.6.0, 2 months ago51 dependents licensed under $MIT
4,586,604

hast utility to sanitize nodes

published version 5.0.2, 7 months ago93 dependents licensed under $MIT
3,339,889

Express middleware for the validator module.

published version 7.2.1, 5 months ago11930 dependents licensed under $MIT
3,318,047

Makes it possible to use DOMPurify on server and client in the same way.

published version 2.25.0, 14 days ago282 dependents licensed under $MIT
4,293,004

rehype plugin to sanitize HTML

published version 6.0.0, 2 years ago278 dependents licensed under $MIT
1,902,025

ESLint rule to disallow unsanitized code

published version 4.1.2, 8 months ago92 dependents licensed under $MPL-2.0
1,688,612

Splits a hostname into subdomains, domain and (effective) top-level domains

published version 8.2.2, 10 months ago257 dependents licensed under $MIT
686,196

Secure XSS Filters - Just sufficient output filtering to prevent XSS!

published version 1.2.7, 9 years ago101 dependents
382,041

Transform environment variables into JSON object with sanitized values.

published version 2.0.0, 5 years ago22 dependents licensed under $MIT
176,457

Schema-Inspector is a powerful tool to sanitize and validate JS objects.

published version 2.1.0, 2 years ago110 dependents licensed under $MIT
154,660

Coerce props to custom values

published version 1.0.0, 6 years ago3 dependents licensed under $MIT
85,888